package com.lzx.tease.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzx
 * @since 2022-12-21
 */
@Getter
@Setter
@TableName("give_a_like")
@ApiModel(value = "GiveALike对象", description = "")
public class GiveALike implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("评论id")
    private Long commentsId;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("是否点赞(0表示未点赞，1表示点赞)")
    private Integer isLike;

    @ApiModelProperty("是否已读(0表示未读，1表示已读)")
    private Integer isRead;

    @ApiModelProperty("点赞时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
